package Ch13;

import java.util.Calendar;
import java.util.Date;

public class Time5 {

	public static void main(String[] args) {
		Date d1 = new Date();
		System.out.println(d1);
		
		long time = System.currentTimeMillis();
		
		Date d2 = new Date(time);
		System.out.println(d2);
		
		Calendar cal = Calendar.getInstance();
		Date date = cal.getTime();
		System.out.println(date);
	}
}
